//
//  YHApp.m
//  000
//
//  Created by 林宁宁 on 2019/9/18.
//  Copyright © 2019 000. All rights reserved.
//

#import "YHApp.h"

@implementation YHApp


+(instancetype)shareManager{
    static YHApp * ss = nil;
    static dispatch_once_t onceToken;
    dispatch_once(&onceToken, ^{
        
        ss = [[YHApp alloc] init];
    });
    return ss;
}

-(UIWindow *)window{
    return [[[UIApplication sharedApplication] delegate] window];
}

-(YHDBSetting *)setting{
    if(!_setting){
        _setting = [YHDBSetting sharedInstance];
    }
    return _setting;
}

-(YHDBUserInfo *)uinfo{
    if(!_uinfo){
        _uinfo = [YHDBUserInfo sharedInstance];
    }
    return _uinfo;
}

-(YHAppInfo *)info{
    if(!_info){
        _info = [[YHAppInfo alloc] init];
    }
    return _info;
}

@end
